using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BiologicalResearch.Models
{
    public class ResearchFinding
    {
        [Key]
        public int Id { get; set; }
        
        [Required]
        public string Content { get; set; }
        
        [Range(1, 5)]
        public int Significance { get; set; }
        public DateTime RecordedAt { get; set; }
        
        [ForeignKey("Experiment")]
        public int ExperimentId { get; set; }
        public Experiment Experiment { get; set; }
        
        [ForeignKey("Agent")]
        public string AgentId { get; set; }
        public ResearchAgent Agent { get; set; }
    }
}